import Vue from "vue";
import App from "./App";
import Vant from "vant";
import wx from "./common/jweixin";
import navTitle from "./components/navtitle/navtitle.vue";
import weChar from "./common/wechar";
import GoEasy from "./common/goeasy-2.1.11.min";
import goEasyConfig from "./common/goEasyConfig";

// 初始化goEasy
const goeash = GoEasy.getInstance({
  host: "hangzhou.goeasy.io", //若是新加坡区域：singapore.goeasy.io
  appkey: "BC-2ccdb62c9fe240dfbb619271eb2cdb44",
  modules: ["pubsub", "im"], //根据需要，传入‘pubsub’或'im’，或数组方式同时传入
});

// 注册全局顶部导航栏组件
Vue.component("nav-title", navTitle);

Vue.prototype.$wx = wx;
Vue.prototype.$weChar = weChar;
Vue.prototype.$goeasy = goeash;
Vue.prototype.$GoEasy = GoEasy;
Vue.prototype.$goEasyConfig = goEasyConfig;

Vue.use(Vant);
Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
  ...App,
});
app.$mount();
